package com.easybuy.service.CategoryService;

import com.easybuy.Tools.Page;
import com.easybuy.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryService {
    List<Category> selectSanCeng();
    Category selectById(int id);
    Category selectByName(String name);
    List<Category> selectByParentId(int id);
    List<String> selectNames(int id);
    Page allCategorys(Page page);
    int addCategory(Category category);
    int deleCategory(int id);
    int updateCategory(Category category);
    List getCategoryBytype(int type);

}
